var result_FS_2 = JSON.parse('{"CODE":0, "ACTION":"","LEVEL":"", "MSG":"","DATA":"","RULE":"FS_2"}');
var dateDiff = betweenDay(new Date(NEW_RETAIL_EFF_DATE), new Date(NEW_RETAIL_EXP_DATE));
var retailType = RETAIL_TYPE;
if (isFresh(DEPT_NBR)) {
    // AR有效期为90天及以上，否则报错；大于1年由GMM审批
    if (retailType == "AR") {
        if (dateDiff < 90
            && DelayArTr !== 1) {
            result_FS_2.CODE = 2;
            result_FS_2.ACTION = "CHECKING_REPORT";
            result_FS_2.MSG = "AR变价有效期需为90天及以上";
        }
        if (dateDiff >= 365) {
            result_FS_2.CODE = 1;
            result_FS_2.ACTION = "APPROVAL_LEVEL";
            result_FS_2.LEVEL = "AG";
            result_FS_2.MSG = "AR变价有效期大于1年，需GMM审批";
        }
    }

}
JSON.stringify(result_FS_2);
